﻿@model Project5.Models.RecoveryModel

@{
    ViewBag.Title = "Account Recovery";
}

<div id="recovery">
<p>
    If your account email address is not <em>@Model.Email</em>, please @Html.ActionLink("go here", "RecoveryRequest") to recover your account.</br>
    @Html.ActionLink("Register", "Register") if you don't already have an account.</br>
</p>

@Html.ValidationSummary(true)

@using (Html.BeginForm("Recovery", "Account"))
{
    @Html.AntiForgeryToken();
    @Html.HiddenFor(m => m.Email);
    @Html.HiddenFor(m => m.Question);
    <div class="well">
        <fieldset>
            <legend>Password Reset</legend>

            <div class="editor-label">
                <p>
                    Answer the following question to reset your password.
                </p>
            </div>
            <p>
                Question: @Model.Question
            </p>

            <div class="editor-label">
                @Html.LabelFor(m => m.Answer)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Answer)
                @Html.ValidationMessageFor(m => m.Answer)
            </div>
            <p>
                <input class="btn btn-primary" type="submit" value="Reset Password" />
                @Html.ActionLink("Cancel", "LogOn", null, new { @class="btn btn-small" })
            </p>
        </fieldset>
    </div>
}
</div>